<template>
  <div class="home-background">
    <!--      头部-->
    <div class="search-header">
      <div class="back"><i class="el-icon-arrow-left back-icon"></i></div>
      <div class="search-box">
        <i class="el-icon-search top-icon"></i>
      </div>
    </div>
    <div class="choose-type">
      <div class="type">活动</div>
      <div class="type">用户</div>
      <div class="type">帖子</div>
      <div class="type">小组</div>
      <div class="type">展馆</div>
    </div>
    <!--        展馆-->
    <div class="all-gallery">
      <div class="gallery">
        <div class="gallery-info">
          <div class="gallery-img">
            <img src="../../../assets/img/5.png">
          </div>
          <div class="gallery-info1">
            <h3>杭州大剧院</h3>
            <p>12.9公里 | 新业路39号</p>
            <p>668 粉丝 |  10场在展</p>
          </div>
          <div class="gallery-attention">
            <button class="attention-button">关注</button>
          </div>
        </div>
        <h3 class="gallery-title">最近活动</h3>
        <div class="all-act">
          <div class="act">
            <img src="../../../assets/img/3.jpg">
            <div class="act-info">
              <p>2021跨年音乐会</p>
              <p style="color: #F59A23">十一人已报名</p>
            </div>
          </div>
          <div class="act">
            <img src="../../../assets/img/3.jpg">
            <div class="act-info">
              <p>2021跨年音乐会</p>
              <p style="color: #F59A23">十一人已报名</p>
            </div>
          </div>
          <div class="act">
            <img src="../../../assets/img/3.jpg">
            <div class="act-info">
              <p>2021跨年音乐会</p>
              <p style="color: #F59A23">十一人已报名</p>
            </div>
          </div>
        </div>
      </div>

      <div class="gallery">
        <div class="gallery-info">
          <div class="gallery-img">
            <img src="../../../assets/img/5.png">
          </div>
          <div class="gallery-info1">
            <h3>杭州大剧院</h3>
            <p>12.9公里 | 新业路39号</p>
            <p>668 粉丝 |  10场在展</p>
          </div>
          <div class="gallery-attention">
            <button class="attention-button">关注</button>
          </div>
        </div>
        <h3 class="gallery-title">最近活动</h3>
        <div class="all-act">
          <div class="act">
            <img src="../../../assets/img/3.jpg">
            <div class="act-info">
              <p>2021跨年音乐会</p>
              <p style="color: #F59A23">十一人已报名</p>
            </div>
          </div>
          <div class="act">
            <img src="../../../assets/img/3.jpg">
            <div class="act-info">
              <p>2021跨年音乐会</p>
              <p style="color: #F59A23">十一人已报名</p>
            </div>
          </div>
          <div class="act">
            <img src="../../../assets/img/3.jpg">
            <div class="act-info">
              <p>2021跨年音乐会</p>
              <p style="color: #F59A23">十一人已报名</p>
            </div>
          </div>
        </div>
      </div>
    </div>

  </div>
</template>

<script>
    export default {
        name: "search-gallery"
    }
</script>

<style scoped>
  .home-background{
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: #F2F2F2;
  }
  .search-header{
    display: flex;
    top: 0;
    right: 0;
    left: 0;
    background-color: white;
    line-height: 44px;
    /*box-shadow: 0px 2px 1px rgba(215,215,215,.15);*/
  }
  .back{
    width: 40px;
    margin-left: 10px;
    margin-top: 5px;
    text-align: center;
  }
  .back-icon{
    color: #7f7f7f;
    font-size: 26px;
    /*margin-left: 7px;*/
    font-weight: bold;
  }
  .search-box{
    display: inline-block;
    flex: 1;
    background-color: #F2F2F2;
    border-radius: 20px;
    height: 35px;
    margin-top: 7px;
    margin-right: 10px;
  }
  .top-icon{
    color: #7f7f7f;
    font-size: 26px;
    margin-left: 7px;
    font-weight: bold;
  }
  .choose-type{
    display: flex;
    right: 0;
    left: 0;
    background-color: white;
    line-height: 44px;
    box-shadow: 0px 2px 1px rgba(215,215,215,.15);
  }
  .type{
    flex: 1;
    text-align: center;
  }

  .all-gallery{
    width: 100%;
    height: auto;
    background-color: #F2F2F2;
  }
  .gallery{
    width: 390px;
    height: 420px;
    margin: 0 auto;
    border-radius: 10px;
    background-color: white;
    margin-top: 20px;
  }
  .gallery-info{
    width: 100%;
    height: 90px;
  }
  .gallery-img{
    display: inline-block;
    width: 120px;
    height: 90px;
  }
  .gallery-img img{
    width: 100px;
    height: 80px;
    border-radius: 10px;
    margin-top: 10px;
    margin-left: 20px;
  }
  .gallery-info1{
    display: inline-block;
    flex: 1;
    height: 80px;
    margin-left: 20px;
    vertical-align: top;
    margin-top: 15px;

  }
  .gallery-info1 h3{
    color: #555555;
    margin-top: 0px;
    margin-bottom: 10px;
    vertical-align: top;
    font-size: 20px;
  }
  .gallery-info1 p{
    color: #7f7f7f;
    margin-top: 2px;
    margin-bottom: 0px;
    font-size: 12px;
  }
  .gallery-attention{
    display: inline-block;
    vertical-align: top;
    width: 80px;
    height: 80px;
    text-align: center;
    margin-left: 10px;
    margin-right: 20px;
    float: right;
    line-height: 80px;
  }
  .attention-button{
    height: 30px;
    width: 80px;
    font-size: 10px;
    text-align: center;
    border: 1px solid #B0E3FF;
    background-color: #B0E3FF;
    color: white;
    border-radius: 15px;
    vertical-align: middle;
  }
  .gallery-title{
    color: #555555;
    margin-left: 20px;
    margin-top: 20px;
    font-weight: normal;
  }
  .all-act{
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }
  .act{
    display: inline-block;
    margin: 0 auto;
    text-align: center;
  }
  .act img{
    width: 100px;
    height: 170px;
    border-radius: 10px;
  }
  .act-info{
    margin-top: 20px;
  }
  .act-info p{
    color: #555555;
    margin-top: 5px;
    margin-bottom: 5px;
  }
</style>
